import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/home',
      name: 'home',
      component: () => System.import('./Home'),
    }, {
      path: '/apps',
      name: 'apps',
      component: () => System.import('./Apps'),
    }, {
      path: '/rank',
      name: 'rank',
      component: () => System.import('./Rank'),
    }, {
      path: '/search',
      name: 'search',
      component: () => System.import('./Search'),
    }, {
      path: '*',
      redirect: '/home',
    }
  ],
});
